cmake_minimum_required(VERSION 3.15)
project(LinuxNPhw C)

set(CMAKE_C_STANDARD 99)

set (EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

add_executable(chatClient chatting/client.c)
add_executable(chatServer chatting/server.c)
# 私聊版服务器
add_executable(chatServerPlus chatting/serverPlus.c chatting/relation.h chatting/relation.c chatting/Datars.h chatting/Datars.c)
# 测试映射关系
add_executable(testrelation chatting/relation.c chatting/relation.h chatting/test/testForRelation.c)

add_executable(testFile chatting/test/testFileRW.c)

add_executable(testDatars chatting/Datars.c chatting/Datars.h chatting/relation.c chatting/relation.h chatting/test/testDatars.c)